<template>
    <el-aside width="200px" style="background-color: #545c64">
    <el-menu :router=true  background-color="#545c64" text-color="#fff"   :collapse="$attrs.mode"  :default-active="key"  class="el-menu-vertical-demo"     active-text-color="#ffd04b" >
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>课程管理</template>
          <el-menu-item route="/watchcourse" index="1-1">查看课程</el-menu-item>
          <el-menu-item route="/watchpackage" index="1-2">查看课程包</el-menu-item>
      </el-submenu>
        <el-menu-item route="/user" index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">用户管理</span>
      </el-menu-item>
      <el-menu-item index="/oss" >
        <i class="el-icon-document"></i>
        <span slot="title">图片上传管理</span>
      </el-menu-item>
      <el-menu-item index="4">
        <i class="el-icon-setting"></i>
        <span slot="title">导航四</span>
      </el-menu-item>
    </el-menu>
  </el-aside>
</template>

<script>
export default {
  name: "left",
  data() {
    return {
      key: "/"
    };
  }
};
</script>

<style scoped>
.aside {
  max-width: 256px;
  min-width: 256px;
  width: 256px;
}
</style>
